<html>
<head><meta charset="utf-8"><title>using ra_syntax in rustc · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra_syntax.20in.20rustc.html">using ra_syntax in rustc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="192131483"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/using%20ra_syntax%20in%20rustc/near/192131483" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> E M <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra_syntax.20in.20rustc.html#192131483">(Mar 28 2020 at 16:49)</a>:</h4>
<p>Has anyone tried modifying rustc to use ra_syntax to parse code instead of the existing parser?</p>



<a name="192131663"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/using%20ra_syntax%20in%20rustc/near/192131663" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra_syntax.20in.20rustc.html#192131663">(Mar 28 2020 at 16:52)</a>:</h4>
<p>That's the plan, but I don't know if matklad is working on it at this point. It needs to be coordinated with the larger Rust project, so it's probably going to need at least an RFC which I'm not sure is written yet.</p>



<a name="192141730"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/using%20ra_syntax%20in%20rustc/near/192141730" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edwin Cheng <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra_syntax.20in.20rustc.html#192141730">(Mar 28 2020 at 21:10)</a>:</h4>
<p>They called it "parser library-ification", you could  search it in Zulip for more details.</p>



<a name="192184774"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/using%20ra_syntax%20in%20rustc/near/192184774" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/using.20ra_syntax.20in.20rustc.html#192184774">(Mar 29 2020 at 17:22)</a>:</h4>
<p>Not yet. I would estimate the work to get "something" in terms of unified parser as a week for someone who is familiar with both rustc and rust-analyzer. The work to do it properly... three months?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>